package cate.game.role.pvp.gradepvp;

import cate.game.play.proce.play.PlayPO;
import cate.game.role.Role;
import cate.game.role.farm.AbstractFarmFTC;

public class GradePvpFTC extends AbstractFarmFTC {
    public int oppoStar;
    public int oppoRank;

    public GradePvpFTC(Role role, int oppoStar, int oppoRank) {
        super.setup(role);
        this.oppoStar = oppoStar;
        this.oppoRank = oppoRank;
    }
    // A 是挑战者 B 是被挑战者
    @Override
    public void handleResult(Role role, PlayPO play) {
        super.handleResult(role, play);
        po(role).afterChallenge(oppoStar, oppoRank, play);
        po(role).noticeUpdate();
    }

    @Override
    protected MyGradePvp po(Role role) {
        return role.getPvp().gradePvp;
    }
}
